package day04;
import java.util.Scanner;
public class FactorialTest {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("请输入您的数字：");
        int num = scan.nextInt();
        int sum=1;
        for(int i=num;i>=1;i--){
            sum*=i;
        }
        System.out.println(num+"！="+sum);
    }
}
